<?php
include "common.php";
require_once ($_SERVER['DOCUMENT_ROOT'].'/conf/global.config.php');
require_once (SRC_DIR.'util.php');


parse_str($_SERVER['QUERY_STRING'], $data);

if (!isset($data['spid'],$data['userId'],$data['token'],$data['device']))
{
	echo -1;
	return;
}

$arr = array(
	"ret" => 0,
    "user" => array(
    	"uid" => $data['userId'],
        "token" => $data['token'],
        "account_type" => 0,
        "fcm_flag" => 0,
        "login_time" => time(),
        "login_sign" => "",
    ),
);
echo json_encode($arr);
